<?php

namespace app\common\validate\user;

use app\common\validate\BaseValidate;

class Artwork extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'id'   => ['require', 'number', '>:0'],
        'ids'  => ['require', 'ids'],
        'name' => ['chsDash', 'max:250'],
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'index' => ['id'],
        'list'  => '',
        'add'  => ['name'],
        'edit' => ['id', 'name'],
        'del'   => ['ids'],
        'submitOrder' => ['id'],
    ];
}
